package com.ssm.icc.card.dao.model.estate;

import com.jee.ssm.common.core.base.BaseModel;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

/**
 * 
 * 表名 d_unit
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/03/25
 */
@ExcelTarget("Unit")
public class Unit extends BaseModel {


    /**
     * 主键
     * 表字段 : d_unit.id
     * Create time 2017/03/25
     */
    private String id;

    /**
     * 单元号
     * 表字段 : d_unit.number
     * Create time 2017/03/25
     */
    @Excel(name="单元",orderNum="1",isImportField = "true")
    private String number;

    /**
     * 所属楼栋
     * 表字段 : d_unit.building_id
     * Create time 2017/03/25
     */

    private String buildingId;

    /**
     * 楼层数
     * 表字段 : d_unit.floor
     * Create time 2017/03/25
     */
    @Excel(name="楼层数",orderNum = "5",isImportField = "true")
    private Integer floor;

    /**
     * 设备编号
     * 表字段 : d_unit.equipment_id
     * Create time 2017/03/25
     */
    private String equipmentId;

    /**
     * 单元长
     * 表字段 : d_unit.auxiliary
     * Create time 2017/03/25
     */
    @Excel(name="单元长" ,orderNum="6",isImportField = "true")
    private String auxiliary;

    /**
     * 备注
     * 表字段 : d_unit.intro
     * Create time 2017/03/25
     */
    @Excel(name="备注",orderNum = "7" ,width=50,isImportField = "true")
    private String intro;

    /**
     * 小区id
     * 表字段 : d_unit.residence_id
     * Create time 2017/04/06
     *
     */
    private String residenceId;

    @Excel(name="小区名称",orderNum = "3",isImportField = "true")
    private  String residenceName;

    @Excel(name="小区编号",orderNum = "2",isImportField = "true")
    private  String residenceNumber;
    /**
     * 小区
     * Create time 2017/04/08
     */
    private Residence residence;

    /**
     * 楼栋
     * Create time 2017/04/08
     */
    private Building building;

    /**
     * 判断该单元设备是否被某张卡绑定
     */

    private String contained;

    private String equipmentName;


    private String buildingName;

    @Excel(name="楼栋编号",orderNum = "4", isImportField = "true")
    private  String buildingNumber;

    /**
     * 构造方法
     */
    public Unit(String id, String number, String buildingId, Integer floor, String equipmentId, String auxiliary, String intro, String residenceId) {
        this.id = id;
        this.number = number;
        this.buildingId = buildingId;
        this.floor = floor;
        this.equipmentId = equipmentId;
        this.auxiliary = auxiliary;
        this.intro = intro;
        this.residenceId = residenceId;
    }

    /**
     * 构造方法
     */
    public Unit() {
        super();
    }

    /**
     * 主键
     * @return id 主键
     */
    public String getId() {
        return id;
    }

    /**
     * 主键
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 单元号
     * @return number 单元号
     */
    public String getNumber() {
        return number;
    }

    /**
     * 单元号
     * @param number 单元号
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 所属楼栋
     * @return building_id 所属楼栋
     */
    public String getBuildingId() {
        return buildingId;
    }

    /**
     * 所属楼栋
     * @param buildingId 所属楼栋
     */
    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    /**
     * 楼层数
     * @return floor 楼层数
     */
    public Integer getFloor() {
        return floor;
    }

    /**
     * 楼层数
     * @param floor 楼层数
     */
    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    /**
     * 设备编号
     * @return equipment_id 设备编号
     */
    public String getEquipmentId() {
        return equipmentId;
    }

    /**
     * 设备编号
     * @param equipmentId 设备编号
     */
    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    /**
     * 单元长
     * @return auxiliary 单元长
     */
    public String getAuxiliary() {
        return auxiliary;
    }

    /**
     * 单元长
     * @param auxiliary 单元长
     */
    public void setAuxiliary(String auxiliary) {
        this.auxiliary = auxiliary;
    }

    /**
     * 备注
     * @return intro 备注
     */
    public String getIntro() {
        return intro;
    }

    /**
     * 备注
     * @param intro 备注
     */
    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getResidenceId() {
        return residenceId;
    }

    public void setResidenceId(String residenceId) {
        this.residenceId = residenceId;
    }

    public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public String getContained() {
        return contained;
    }

    public void setContained(String contained) {
        this.contained = contained;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getResidenceName() {
        return residenceName;
    }

    public void setResidenceName(String residenceName) {
        this.residenceName = residenceName;
    }

    public String getResidenceNumber() {
        return residenceNumber;
    }

    public void setResidenceNumber(String residenceNumber) {
        this.residenceNumber = residenceNumber;
    }

    public String getBuildingNumber() {
        return buildingNumber;
    }

    public void setBuildingNumber(String buildingNumber) {
        this.buildingNumber = buildingNumber;
    }
}